package com.fingard.dsp.bank.reqrespobj.elecbillquery.detail;

import com.fingard.xml.XmlTextWriter;

/**
 * Created by F on 2019/5/21.
 */
public class RetAtsB009DrawBillQryTransDetail {
    public String billNum;
    public String billType;
    public String issDate;
    public String dueDate;
    public String billAmt;
    public String transFlag;
    public String mustPay;
    public String drawName;
    public String drawCode;
    public String drawAct;
    public String drawBnkName;
    public String drawBnkCode;
    public String accpName;
    public String accpCode;
    public String accpAct;
    public String accpBnkName;
    public String accpBnkCode;
    public String payeeName;
    public String payeeCode;
    public String payeeAct;
    public String payeeBnkName;
    public String payeeBnkCode;
    //期限
    public String billItem;
    //单位 0:天 1:月
    public String itemUnit;
    public String memo;
    public String contractNo;
    public String invoiceNo;
    public String marginAct;
    public String marginRate;

    public void writeDetail(XmlTextWriter retXmlWriter, RetAtsB009DrawBillQryTransDetail B009TransDetail) {
        retXmlWriter.writeStartElement("DetailRecord");
        retXmlWriter.writeElementString("BillNum",B009TransDetail.billNum);
        retXmlWriter.writeElementString("BillType",B009TransDetail.billType);
        retXmlWriter.writeElementString("IssDate",B009TransDetail.issDate);
        retXmlWriter.writeElementString("DueDate",B009TransDetail.dueDate);
        retXmlWriter.writeElementString("BillAmt",B009TransDetail.billAmt);
        retXmlWriter.writeElementString("TransFlag",B009TransDetail.transFlag);
        retXmlWriter.writeElementString("MustPay",B009TransDetail.mustPay);
        retXmlWriter.writeElementString("DrawName",B009TransDetail.drawName);
        retXmlWriter.writeElementString("DrawCode",B009TransDetail.drawCode);
        retXmlWriter.writeElementString("DrawAct",B009TransDetail.drawAct);
        retXmlWriter.writeElementString("DrawBnkName",B009TransDetail.drawBnkName);
        retXmlWriter.writeElementString("DrawBnkCode",B009TransDetail.drawBnkCode);
        retXmlWriter.writeElementString("AccpName",B009TransDetail.accpName);
        retXmlWriter.writeElementString("AccpCode",B009TransDetail.accpCode);
        retXmlWriter.writeElementString("AccpAct",B009TransDetail.accpAct);
        retXmlWriter.writeElementString("AccpBnkName",B009TransDetail.accpBnkName);
        retXmlWriter.writeElementString("AccpBnkCode",B009TransDetail.accpBnkCode);
        retXmlWriter.writeElementString("PayeeName",B009TransDetail.payeeName);
        retXmlWriter.writeElementString("PayeeCode",B009TransDetail.payeeCode);
        retXmlWriter.writeElementString("PayeeAct",B009TransDetail.payeeAct);
        retXmlWriter.writeElementString("PayeeBnkName",B009TransDetail.payeeBnkName);
        retXmlWriter.writeElementString("PayeeBnkCode",B009TransDetail.payeeBnkCode);
        retXmlWriter.writeElementString("BillItem",B009TransDetail.billItem);
        retXmlWriter.writeElementString("ItemUnit",B009TransDetail.itemUnit);
        retXmlWriter.writeElementString("Memo",B009TransDetail.memo);
        retXmlWriter.writeElementString("ContractNo",B009TransDetail.contractNo);
        retXmlWriter.writeElementString("InvoiceNo",B009TransDetail.invoiceNo);
        retXmlWriter.writeElementString("MarginAct",B009TransDetail.marginAct);
        retXmlWriter.writeElementString("MarginRate",B009TransDetail.marginRate);
        retXmlWriter.writeEndElement();
    }


}
